package com.ruoyi.transaction.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.core.domain.StoreInfo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;


/**
 * 骑手信息对象 rider
 * 
 * @author swy
 * @date 2025-08-07
 */
public class Rider extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 骑手ID，自增主键 */
    private Integer riderId;

    /** 所属门店ID（关联 store_store 表） */
    @Excel(name = "所属门店ID", readConverterExp = "关=联,s=tore_store,表=")
    private Integer storeId;

    /** 骑手姓名 */
    @Excel(name = "骑手姓名")
    private String name;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 头像URL */
    @Excel(name = "头像URL")
    private String avatarUrl;

    /** 骑手状态（1-空闲，2-配送中，3-休假） */
    @Excel(name = "骑手状态", readConverterExp = "1=-空闲，2-配送中，3-休假")
    private Integer status;

    /** 逻辑删除标志（0-未删除，1-已删除） */
    private String delFlag;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setRiderId(Integer riderId) 
    {
        this.riderId = riderId;
    }

    public Integer getRiderId() 
    {
        return riderId;
    }

    public void setStoreId(Integer storeId) 
    {
        this.storeId = storeId;
    }

    public Integer getStoreId() 
    {
        return storeId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("riderId", getRiderId())
            .append("storeId", getStoreId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("avatarUrl", getAvatarUrl())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }

    private StoreInfo storeInfo;

    public StoreInfo getStoreInfo() {
        return storeInfo;
    }

    public void setStoreInfo(StoreInfo storeInfo) {
        this.storeInfo = storeInfo;
    }

}
